<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<link rel="stylesheet" href="/static/css/dialog.css"/>

<div id="saveClasDialog" class="dialog_content clearfix notAllowSelect" style="height: 360px">
    <div class="title dialog_title">
        <p class="iconfont icon-quanxianshenpi"></p>
        <span>新增</span>
        <i class='iconfont icon-close dialog_close' onclick='dialog_close()'></i>
    </div>
    <div class="content clearfix" style="width:530px;padding-top:20px!important;padding-bottom:20px!important;">
        <div class="SHselect " style="margin-left:15px">
            <i>*</i><span style="width: 85px">选择学院:</span>
            <div class="SHselect-father">
                <input type="text" id="college" readonly="readonly" placeholder="请选择学院">
                <input type="hidden">
                <p class="iconfont icon-jiantouxia"></p>
                <div class="SHselect-son">
                    <ul>
                    </ul>
                </div>
            </div>
        </div>
        <div class="SHselect " style="margin-left:15px">
            <i>*</i><span style="width: 85px">选择年级:</span>
            <div class="SHselect-father">
                <input type="text" id="clasGrade" readonly="readonly" placeholder="请选择年级">
                <input type="hidden">
                <p class="iconfont icon-jiantouxia"></p>
                <div class="SHselect-son">
                    <ul>
                        <li><span>18</span><div>18</div></li>
                        <li><span>17</span><div>17</div></li>
                        <li><span>16</span><div>16</div></li>
                        <li><span>15</span><div>15</div></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="SHinput" style=" margin-left: 15px;">
            <i>*</i><span style="width: 85px">班号:</span>
            <input type="text" id="clasNum" placeholder="请输入新增的班级号"> <br/>
            <div class="errorMsg"></div>
            <p class="iconfont icon-success" style="right:60px!important;"></p>
            <p class="iconfont icon-error" style="right:60px!important;"></p>
        </div>
        <div class="end" style="left:330px!important;bottom: -20px!important;">
            <button class="cancel" onclick="dialog_close()">取消</button>
            <button  style="margin-left:20px;" id="clasSaveBtn"  class="button_cannot" disabled="disabled" >保存
            </button>
        </div>

    </div>
</div>
<script type="text/javascript" src="/static/js/admin/collegeList.js"></script>
<script type="text/javascript" src="/static/js/idms.js"></script>

<script type="text/javascript">

    setTimeout(function () {
        $(".SHselect-son").children("ul").children("li").click(function () {
            $(this).parent().parent().parent().children("input").first().val($(this).children("span").text());
            $(this).parent().parent().parent().children("input").next().val($(this).children("div").text());
            $(this).parent().parent().parent().children("input").addClass("SHselect-success");
            testSaveClas();
        });
    }, 500);

</script>